/*
 * Copyright (c) novafaen design 2009 
 */
package tentaflykt.editor.xml;

/**
 * Simple key-value class.
 * @author Kristoffer Nilsson
 */
public class XMLAttribute {
  private String key = null;
  private Object value = null;
  
  /**
   * Constructor, creates an <code>XMLAttribute</code> object.<br>
   * &lt;element <b>key</b>=<b>value</b>>
   * @param key The key
   * @param value The Value
   */
  public XMLAttribute(String key, Object value) {
    this.key = key;
    this.value = value;
  }
  
  /**
   * @return The key
   */
  public String getKey() {
    return key;
  }
  
  /**
   * @param key The key
   */
  public void setKey(String key) {
    this.key = key;
  }
  
  /**
   * @return The value
   */
  public String getValue() {
    return value.toString();
  }
  
  /**
   * Value as <code>String</code>
   * @param value The value
   */
  public void setValue(Object value) {
    this.value = value;
  }
}
